package com.linkage.lcims.base.po.cdma;

import org.apache.commons.lang.builder.ToStringBuilder;



/**
 * CUserBindImsiPK entity. @author MyEclipse Persistence Tools
 */

@SuppressWarnings("serial")
public class CUserBindImsiPK  implements java.io.Serializable {


    // Fields    

     private String username;
     private String imsi;


    // Constructors

    /** default constructor */
    public CUserBindImsiPK() {
    }

    
    /** full constructor */
    public CUserBindImsiPK(String username, String imsi) {
        this.username = username;
        this.imsi = imsi;
    }

   
    // Property accessors

    public String getUsername() {
        return this.username;
    }
    
    public void setUsername(String username) {
        this.username = username;
    }

    public String getImsi() {
        return this.imsi;
    }
    
    public void setImsi(String imsi) {
        this.imsi = imsi;
    }
   
    public String toString() {
        return new ToStringBuilder(this)
            .append("username", getUsername())
            .append("imsi", getImsi())
            .toString();
    }


	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result + ((imsi == null) ? 0 : imsi.hashCode());
		result = prime * result
				+ ((username == null) ? 0 : username.hashCode());
		return result;
	}


	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		CUserBindImsiPK other = (CUserBindImsiPK) obj;
		if (imsi == null) {
			if (other.imsi != null)
				return false;
		} else if (!imsi.equals(other.imsi))
			return false;
		if (username == null) {
			if (other.username != null)
				return false;
		} else if (!username.equals(other.username))
			return false;
		return true;
	}






}